<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Database</title>

<script type="javascript/text">  
function showListName()
{
	var xmlhttp;
	if (window.XMLHttpRequest)
		{
		xmlhttp=new XMLHttpRequest();
		}
	else
		{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
			{
			document.getElementById("showlist").innerHTML="test";
			alert(xmlhttp.responseText);
			}
	}
	xmlhttp.open("POST", "simple", true);
	xmlhttp.send();
}
</script>

</head>
<body>
<input type="text" name="nameInput" id="nameInput"/>
<input type="submit" name="btn_Add" value="Add" onclick=""/>
<br/>
<form action="simple" method="post">
<input type="submit" name="btn_Show" value="Show list name" onclick="showListName()"/>
<br/>
</form>
List names:
<br/><div id="showlist">Nokia</div>
</body>
</html>